<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车 - 甜品店堂食点餐系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://unpkg.com/tdesign-mobile-vue/dist/tdesign.min.css" />
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f0f2f5;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
        .cart-item {
            transition: transform 0.2s;
        }
        .cart-item:active {
            transform: scale(0.98);
        }
        .quantity-control {
            user-select: none;
        }
    </style>
</head>
<body>
    <div class="flex flex-col h-full">
        <!-- 顶部导航栏 -->
        <div class="bg-white px-4 py-3 flex items-center justify-between shadow-sm">
            <h1 class="text-lg font-medium">购物车</h1>
            <button class="text-sm text-gray-500">清空</button>
        </div>

        <!-- 购物车列表 -->
        <div class="flex-1 overflow-y-auto p-4 space-y-3">
            <!-- 购物车项目 1 -->
            <div class="cart-item bg-white rounded-xl shadow-sm overflow-hidden p-3 flex items-center">
                <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0">
                    <img src="https://images.unsplash.com/photo-1587314168485-3236d6710814?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="提拉米苏" class="w-full h-full object-cover">
                </div>
                <div class="ml-3 flex-1">
                    <h3 class="font-bold text-gray-800">经典提拉米苏</h3>
                    <p class="text-xs text-gray-500 mt-0.5">意大利经典甜点</p>
                    <div class="flex items-center justify-between mt-2">
                        <div class="text-pink-600 font-bold">¥42.00</div>
                        <div class="quantity-control flex items-center">
                            <button class="w-7 h-7 rounded-full bg-gray-100 flex items-center justify-center">
                                <svg class="w-4 h-4 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 12H4"></path>
                                </svg>
                            </button>
                            <span class="mx-3 text-gray-800 w-5 text-center">1</span>
                            <button class="w-7 h-7 rounded-full bg-pink-500 flex items-center justify-center">
                                <svg class="w-4 h-4 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>
                                </svg>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 购物车项目 2 -->
            <div class="cart-item bg-white rounded-xl shadow-sm overflow-hidden p-3 flex items-center">
                <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0">
                    <img src="https://images.unsplash.com/photo-1501443762994-82bd5dace89a?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="芒果冰沙" class="w-full h-full object-cover">
                </div>
                <div class="ml-3 flex-1">
                    <h3 class="font-bold text-gray-800">芒果冰沙</h3>
                    <p class="text-xs text-gray-500 mt-0.5">新鲜芒果打制</p>
                    <div class="flex items-center justify-between mt-2">
                        <div>
                            <span class="text-pink-600 font-bold">¥28.00</span>
                            <span class="text-xs text-gray-400 line-through ml-1">¥32.00</span>
                        </div>
                        <div class="quantity-control flex items-center">
                            <button class="w-7 h-7 rounded-full bg-gray-100 flex items-center justify-center">
                                <svg class="w-4 h-4 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 12H4"></path>
                                </svg>
                            </button>
                            <span class="mx-3 text-gray-800 w-5 text-center">2</span>
                            <button class="w-7 h-7 rounded-full bg-pink-500 flex items-center justify-center">
                                <svg class="w-4 h-4 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>
                                </svg>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 备注信息 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4 mt-4">
                <h3 class="font-medium text-gray-800 mb-2">备注</h3>
                <textarea class="w-full border border-gray-200 rounded-lg p-3 text-sm" rows="2" placeholder="有什么特殊要求可以告诉我们..."></textarea>
            </div>

            <!-- 桌号选择 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4 mt-4">
                <h3 class="font-medium text-gray-800 mb-2">桌号</h3>
                <div class="grid grid-cols-4 gap-2">
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A01</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A02</button>
                    <button class="border border-pink-500 bg-pink-50 text-pink-600 rounded-lg py-2 text-center text-sm font-medium">A03</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A04</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A05</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A06</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A07</button>
                    <button class="border border-gray-200 rounded-lg py-2 text-center text-sm">A08</button>
                </div>
            </div>
        </div>

        <!-- 底部结算栏 -->
        <div class="bg-white border-t border-gray-200 p-4">
            <div class="flex items-center justify-between mb-3">
                <div>
                    <span class="text-gray-600">共3件商品，合计：</span>
                    <span class="text-pink-600 font-bold text-xl">¥98.00</span>
                </div>
            </div>
            <a href="confirm.html" class="block w-full bg-gradient-to-r from-pink-500 to-purple-500 text-white py-3 rounded-full font-medium text-center shadow-md">
                去结算
            </a>
        </div>

        <!-- 底部导航 -->
        <div class="bg-white border-t border-gray-200 flex justify-around py-2">
            <a href="scan.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">首页</span>
            </a>
            <a href="menu.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">菜单</span>
            </a>
            <a href="cart.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-pink-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                </svg>
                <span class="text-xs mt-1 text-pink-500 font-medium">购物车</span>
            </a>
            <a href="orders.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">我的</span>
            </a>
        </div>
    </div>
</body>
</html>